﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
//GM 2012-01-13
//http://stackoverflow.com/questions/880515/display-image-from-database-in-asp-mvc
namespace DoveSiButta.Controllers
{
    public class ImageController : Controller
    {
        //
        // GET: /Image/
         public ActionResult Show( int id ) //get dinner with ID = id ...
    {
        //var imageData =  ...get bytes from db ...
             byte[] imageData = new byte[1];
        return File(imageData, "newBox/jpg");

    }

        public ActionResult Index()
        {
            return View();
        }

    }
}
